package com.csu.income;

import java.util.List;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class IChangeFrame extends JFrame{
	public void initContent() {

		JLabel kongsLabel = new JLabel("");
		JPanel panel4 = new JPanel();
		//将文本框和输入框加入到面板里
		panel4.add(kongsLabel);

		//创建用户名输入面板
		JLabel subLabel = new JLabel("修改成功!");
		JPanel panel1 = new JPanel();
		//将文本框和输入框加入到面板里
		panel1.add(subLabel);

		JLabel kongLabel = new JLabel("");
		JPanel panel2 = new JPanel();
		//将文本框和输入框加入到面板里
		panel2.add(kongLabel);

		JButton btnSure = new JButton("确定");
		JPanel panel3 = new JPanel();
		panel3.add(btnSure);

		btnSure.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				setVisible(false);

			}

		});


		Box vBox = Box.createVerticalBox();
		vBox.add(panel4);
		vBox.add(panel1);
		vBox.add(panel2);
		vBox.add(panel3);
		//jframe设置内容面板
		setContentPane(vBox);
		//显示窗口
		setVisible(true);

	}

}
